stateChanges

fun ChatRoom.stateChanges(): Flow<ChatRoom.State>

Flow for observing ChatRoom.state changes.

Using this equivalent to implementing ChatRoomListener lifecycle methods:

This is a cold flow constructed using callbackFlow API.